package com.engine4cloud.tdf.supervision.dto.update;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

/**
 * 其他工作人员
 *
 * @author wenjie
 * @date 2024-05-21 15:12:24
 */
@Data
@Schema(description = "其他工作人员")
public class GzryOtherUpdateDTO implements Serializable {
    /**
     * 公务员编码
     */
    @Schema(description = "主键")
    @NotNull(message = "主键不能为空")
    private Long id;

    /**
     * 姓名
     */
    @Schema(description = "姓名", example = "张三")
    @NotBlank(message = "姓名不能为空")
    private String xm;

    /**
     * 性别
     */
    @Schema(description = "性别", example = "01")
    @NotBlank(message = "性别不能为空")
    private String xb;

    /**
     * 出生日期
     */
    @Schema(description = "出生日期", example = "2024-01-01")
    @NotNull(message = "出生日期不能为空")
    private LocalDate csrq;

    /**
     * 身份证号
     */
    @Schema(description = "身份证号", example = "610418********2011")
    @NotBlank(message = "身份证号不能为空")
    private String sfzh;

    /**
     * 政治面貌
     */
    @Schema(description = "政治面貌", example = "01")
    @NotBlank(message = "政治面貌不能为空")
    private String zzmm;

    /**
     * 学历
     */
    @Schema(description = "学历", example = "01")
    @NotBlank(message = "学历不能为空")
    private String xl;

    /**
     * 最高学位
     */
    @Schema(description = "最高学位", example = "01")
    private String zgxw;

    /**
     * 毕业院校
     */
    @Schema(description = "毕业院校")
    private String byyx;

    /**
     * 专业
     */
    @Schema(description = "专业", example = "110")
    private String zy;

    /**
     * 职称
     */
    @Schema(description = "职称", example = "01")
    private String zc;

    /**
     * 工作单位
     */
    @Schema(description = "工作单位")
    private String gzdw;

    /**
     * 联系电话
     */
    @Schema(description = "联系电话")
    private String lxdh;

    /**
     * 手机
     */
    @Schema(description = "手机")
    @NotBlank(message = "手机不能为空")
    private String sj;

    /**
     * 家庭住址
     */
    @Schema(description = "家庭住址")
    @NotBlank(message = "家庭住址不能为空")
    private String jtzz;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String bz;

    /**
     * 职业
     */
    @Schema(description = "职业", example = "[\"10000\",\"10200\"]")
    @Size(min = 1)
    @NotEmpty(message = "职业不能为空，且长度为2位")
    private List<String> positionList;

    /**
     * 家庭住址
     */
    @Schema(description = "家庭住址", example = "[\"460000\",\"46000A\",\"469006\",\"36327\"]")
    private List<String> areaList;
}